package com.pzb.wechat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

/**
 * 小程序商户对象 wechat_applet
 * 
 * @author Mr_Wu
 * @date 2022-01-07
 */
public class WechatApplet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 小程序appid */
    private String appid;

    /** 小程序名称 */
    private String nickName;

    /** 小程序所属机构ID，创建用户的所属机构ID */
    private Long deptId;

    private String mchId;

    private String mchKey;

    private String deptName;

    /** 创建人 */
    private Long createUser;

    private String createUserName;

    /** 小程序主体名称 */
    private String principalName;

    /** 联系电话 */
    private String principalPhone;

    /** 小程序主要业务介绍 */
    private String signature;

    /** 支付状态开通标志：0为开通，1为未开通 */
    private String openPay;

    /** 系统管理员对小程序是否开通的操作状态：0为开通；1为未开通 */
    private String openStatus;

    /** 服务开通时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date openTime;

    /** 服务截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date closeTime;

    /** 备注信息 */
    private String remarks;

    private Integer authStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppid(String appid) 
    {
        this.appid = appid;
    }

    public String getAppid() 
    {
        return appid;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getMchKey() {
        return mchKey;
    }

    public void setMchKey(String mchKey) {
        this.mchKey = mchKey;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setCreateUser(Long createUser)
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public void setPrincipalName(String principalName)
    {
        this.principalName = principalName;
    }

    public String getPrincipalName() 
    {
        return principalName;
    }
    public void setPrincipalPhone(String principalPhone) 
    {
        this.principalPhone = principalPhone;
    }

    public String getPrincipalPhone() 
    {
        return principalPhone;
    }
    public void setSignature(String signature) 
    {
        this.signature = signature;
    }

    public String getSignature() 
    {
        return signature;
    }
    public void setOpenPay(String openPay) 
    {
        this.openPay = openPay;
    }

    public String getOpenPay() 
    {
        return openPay;
    }
    public void setOpenStatus(String openStatus) 
    {
        this.openStatus = openStatus;
    }

    public String getOpenStatus() 
    {
        return openStatus;
    }
    public void setOpenTime(Date openTime) 
    {
        this.openTime = openTime;
    }

    public Date getOpenTime() 
    {
        return openTime;
    }
    public void setCloseTime(Date closeTime) 
    {
        this.closeTime = closeTime;
    }

    public Date getCloseTime() 
    {
        return closeTime;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public Integer getAuthStatus() {
        return authStatus;
    }

    public void setAuthStatus(Integer authStatus) {
        this.authStatus = authStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appid", getAppid())
            .append("nickName", getNickName())
            .append("deptId", getDeptId())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("principalName", getPrincipalName())
            .append("principalPhone", getPrincipalPhone())
            .append("signature", getSignature())
            .append("openPay", getOpenPay())
            .append("openStatus", getOpenStatus())
            .append("openTime", getOpenTime())
            .append("closeTime", getCloseTime())
            .append("remarks", getRemarks())
            .toString();
    }
}
